const { getWorkTypeList } = require('../service/workType.service');

class WorkTypeController {
  async getWorkTypeList(ctx, next) {
    try {
      const result = await getWorkTypeList();
      ctx.body = {
        ret: 0,
        data: result
      };
    } catch(e) {
      console.log('[workType.controller_getWorkTypeList]', e);
    }
  }
}

module.exports = new WorkTypeController();